package day04.ZuoYeDemo;
import java.util.Scanner;
public class ClassDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = 0;
        int c = 0;
        while ( a != 0){
            b = a% 10;
            c = c*10+b;
            a /= 10;
        }
        System.out.println( c );
    }
}
